package com.dtstack.rocketmq.domain.response.shopify.lineitems;

import com.dtstack.rocketmq.domain.response.shopify.Product;

import java.io.Serializable;

/**
 * ProductNode
 *
 * <p>
 * </p>
 *
 * @author chuanbai
 * @date 2024/10/25
 */
public class Node implements Serializable {
    // 产品名称
    private String name;
    // 产品数量
    private Integer quantity;
    // sku
    private String sku;
    // 是否是礼品卡产品
    private boolean isGiftCard;

    // 产品
    private Product product;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public boolean isGiftCard() {
        return isGiftCard;
    }

    public void setGiftCard(boolean giftCard) {
        isGiftCard = giftCard;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    @Override
    public String toString() {
        return "Node{" +
                "name='" + name + '\'' +
                ", quantity=" + quantity +
                ", sku='" + sku + '\'' +
                ", isGiftCard=" + isGiftCard +
                ", product=" + product +
                '}';
    }
}
